import requset from '@/requset/requset.js'

// 二维码 key 生成接口 /login/qr/key
export const getKeyApi = () => requset.get(`/login/qr/key?_t=${+Date.now()}`)

// 二维码生成接口 /login/qr/create
export const getQrCodeApi = (params) => requset.get(`/login/qr/create?key=${params}&_t=${+Date.now()}&qrimg=true`)

// 二维码检测扫描状态接口
export const getQrCodeStatusApi = (params) => requset.get(`/login/qr/check?key=${params}&_t=${+Date.now()}&qrimg=true`)

// 发送验证码接口 /captcha/sent
export const getShortMsgApi = (params) => requset.get(`/captcha/sent?phone=${params}&_t=${+Date.now()}`)

// 验证验证码接口  /captcha/verify
export const JiaoYanShortMsgApi = (params) => requset.get('/captcha/verify', {params})

// 注册接口 /register/cellphone
export const RegisterApi = (params) => requset.get('/register/cellphone', {params})

// 密码登录
export const PwdLoginApi = (params) => requset.get('/login/cellphone', {params})